{template header}
<script src="static/bootstrap/js/utils.js"></script>
<form class="form-horizontal" action="index.php?c=admin&a=topicAction" method="post" enctype="multipart/form-data">
  <div class="control-group">
    <label class="control-label">话题名称：</label>
    <div class="controls">
      <input type="text" name='name' placeholder="话题名称" value="{$topicInfo['name']}">
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">话题描述（单行不超过12个字，总共不超过24个字）：</label>
    <div class="controls">
      <textarea name="short_desc">{$topicInfo['short_desc']}</textarea>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">状态</label>
    <div class="controls">
        <select name="status">
        {loop $topicStatus $k $v}
        <option value="{$k}" {if $k==$topicInfo['status']}selected{/if}>{$v}</option>
        {/loop}
        </select>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">推荐帖子id，英文逗号隔开，没有空格，例如（123,555）：</label>
    <div class="controls">
      <input type="text" name='feature_posts' placeholder="推荐帖子" value="{$topicInfo['feature_posts']}">
    </div>
  </div>
  
  <div class="control-group">
    <div class="controls">
        <input type="hidden" name="topic_id" value="{$topicInfo['topic_id']}">
        <input type="hidden" name="thumb_img" value="{$topicInfo['thumb_img']}">
        <button type="submit" class="btn">提交</button>
    </div>
  </div>
</form>
{template footer}